// @APIVersion 1.0.0
// @Title beego Test API
// @Description beego has a very cool tools to autogenerate documents for your API
// @Contact astaxie@gmail.com
// @TermsOfServiceUrl http://beego.me/
// @License Apache 2.0
// @LicenseUrl http://www.apache.org/licenses/LICENSE-2.0.html
package routers

import (
	"dmsv/controllers"

	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	ns := beego.NewNamespace("/audio",
		beego.NSInclude(
			&controllers.CallController{},
		),
	)
	beego.AddNamespace(ns)

	ns2 := beego.NewNamespace("/manager",
		beego.NSNamespace("/sip",
			beego.NSInclude(
				&controllers.SipController{},
			),
		),
		beego.NSNamespace("/ivr",
			beego.NSInclude(
				&controllers.IvrController{},
			),
		),
		beego.NSInclude(
			&controllers.ManagerController{},
		),
	)
	beego.AddNamespace(ns2)

	nsCall := beego.NewNamespace("/call",
		beego.NSNamespace("/task",
			beego.NSInclude(
				&controllers.OutCallController{},
			),
		),
		beego.NSInclude(
			&controllers.Callv2Controller{},
		),
	)
	beego.AddNamespace(nsCall)

	ws := beego.NewNamespace("/ws",
		beego.NSInclude(
			&controllers.WebSocketController{},
		),
	)
	beego.AddNamespace(ws)

	addtional := beego.NewNamespace("/addtion",
		beego.NSNamespace("/tts",
			beego.NSInclude(
				&controllers.AddtionalController{},
			),
		),
	)
	beego.AddNamespace(addtional)

}
